Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor label parser #1032

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sylwit
Copy link

@sylwit sylwit commented May 13, 2024

Refactor label parser to make it more readable and and faster

Signed-off-by: Sylvain Witmeyer <[email protected]>
@sylwit sylwit force-pushed the feature/refactor_parser branch from 4023449 to cc86745 Compare May 13, 2024 23:52
@@ -37,57 +37,29 @@ def _replace_escaping(s: str) -> str:
return ESCAPING_RE.sub(replace_escape_sequence, s)


def _is_character_escaped(s: str, charpos: int) -> bool:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is moved to openmetrics/parser.py

@sylwit sylwit force-pushed the feature/refactor_parser branch from a84f6d3 to 7205ac5 Compare May 14, 2024 03:06
@sylwit sylwit force-pushed the feature/refactor_parser branch from 7205ac5 to 139d601 Compare May 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant